package com.woniuxy.exam.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.woniuxy.commons.entity.Label;
import com.woniuxy.exam.mapper.LabelMapper;
import com.woniuxy.exam.service.LabelService;

import java.util.List;

/**
@author zouyang
@date 2020/7/25 - 15:38
*/
@Service
public class LabelServiceImpl implements LabelService{

    @Resource
    private LabelMapper labelMapper;

    @Override
    public List<Label> selectAll() {
        return labelMapper.selectAll();
    }

    @Override
    public List<Label> selectByAll(Label label) {
        return labelMapper.selectByAll(label);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return labelMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Label record) {
        return labelMapper.insert(record);
    }

    @Override
    public int insertSelective(Label record) {
        return labelMapper.insertSelective(record);
    }

    @Override
    public Label selectByPrimaryKey(Integer id) {
        return labelMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Label record) {
        return labelMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Label record) {
        return labelMapper.updateByPrimaryKey(record);
    }

}
